package com.guaoran.interview.spring.scope.service;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.annotation.PreDestroy;

/**
 * @author : 孤傲然
 * @description : session
 * @date :2019/12/9 18:31
 */
@Scope("session")
@Service
public class SessionService {
//    @PreDestroy
    public void destroy(){
        System.out.println("SessionService ... destroy");
    }
}
